
            <div style="clear:both;"></div>
            <div id="footer">
                <div class="contenu">
                    Copyright &copy 2011. All rights reserved.
                </div>
            </div>

        
    <link rel="stylesheet" href="<?=JS_PATH?>/jquery/jwysiwyg/jwysiwyg/jquery.wysiwyg.css" type="text/css" />
    <script type="text/javascript" src="<?=JS_PATH?>/jquery/jwysiwyg/jwysiwyg/jquery.wysiwyg.js"></script>

      <script type="text/javascript">
  $(function()
  {
      $('textarea').wysiwyg();
  });
  </script>

  <?php
$config = Vnf::getConfigs('conf');
$shoponline = @$config->shoponline;
if ($shoponline) {
?>
    
<script type="text/javascript" src="<?=JS_PATH?>/jquery/jquery-impromptu.3.1.min.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="<?=JS_PATH?>/jquery/promt.css" />

<script type="text/javascript">

    function updateCart() {
        $.ajax({
            url: "<?php echo BASE_URL?>/index/shop/countcart",
            type: "POST",
            dataType: "json",
            success: function(responseText){
                $("#countitems").html(responseText.count);
                $("#srtCart").html(responseText.srtCart);
            }
        });
    }
    function addToCart(id){
        $.ajax({
            url: "<?=BASE_URL?>/index/shop/addtocart",
            type: "POST",
            data:{itemid: id, amount: 1},
            dataType: "json",
            beforeSend: function(){
                $.prompt('Please wait ...',{ buttons: {} });
            },
            success: function(responseText){
                jQuery.prompt.close();
                updateCart();
                $.prompt(responseText.msg,{ buttons: { Ok: true }, zIndex : 1000000000 });
                //$("#countitems").html(responseText.count);
            },
            error: function(html){
                jQuery.prompt.close();
                $.prompt('Connection has problem ...',{ buttons: {} });
            }
        });

    }
</script>
<script type="text/javascript">
    $(document).ready(function() {
        updateCart();
    });
</script>
<?php
} // if shoponline == 1
?>
